package com.example.flower_shop.vo.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "管理员用户分页响应对象")
public class AdmUserPageRespVO {
    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Schema(description = "用户唯一标识", example = "1")
    private Long id;

    /**
     * 姓名
     */
    @Schema(description = "用户昵称", example = "张三")
    private String nickname;

    /**
     * 用户名
     */
    @Schema(description = "用户名", example = "zhangsan")
    private String username;

    /**
     * 密码
     */
    @Schema(description = "用户密码", example = "password123")
    private String password;

    /**
     * 年龄
     */
    @Schema(description = "用户年龄", example = "30")
    private Integer age;

    /**
     * 性别 男 1 女2 不详3
     */
    @Schema(description = "用户性别：男1，女2，不详3", example = "1")
    private Integer gender;

    /**
     * 完整地址
     */
    @Schema(description = "用户详细地址", example = "广州市天河区某某路123号")
    private String address;

    /**
     * 头像
     */
    @Schema(description = "用户头像", example = "base64")
    private String avatar;

    /**
     * 手机
     */
    @Schema(description = "用户手机号码", example = "13800000000")
    private String phone;

    /**
     * 备注
     */
    @Schema(description = "用户备注信息", example = "备注内容")
    private String remark;

    /**
     * 状态 0:禁用 1:启用
     */
    @Schema(description = "用户状态：0-禁用, 1-启用", example = "1")
    private Boolean status;

    @Schema(description = "用户角色名称", example = "管理员")
    private String roleName;

    /**
     * 创建时间
     */
    @Schema(description = "用户创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "用户更新时间")
    private LocalDateTime updateTime;
}
